package org.jeecg.modules.userFormula.service;

import org.jeecg.modules.userFormula.entity.UserFormulaDetail;
import org.jeecg.modules.userFormula.entity.UserFormulaPortion;
import org.jeecg.modules.userFormula.entity.UserFormula;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 算法库
 * @Author: jeecg-boot
 * @Date:   2023-02-23
 * @Version: V1.0
 */
public interface IUserFormulaService extends IService<UserFormula> {

	/**
	 * 添加一对多
	 *
	 * @param userFormula
	 * @param userFormulaDetailList
	 * @param userFormulaPortionList
	 */
	public void saveMain(UserFormula userFormula,List<UserFormulaDetail> userFormulaDetailList,List<UserFormulaPortion> userFormulaPortionList) ;
	
	/**
	 * 修改一对多
	 *
	 * @param userFormula
	 * @param userFormulaDetailList
	 * @param userFormulaPortionList
	 */
	public void updateMain(UserFormula userFormula,List<UserFormulaDetail> userFormulaDetailList,List<UserFormulaPortion> userFormulaPortionList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
}
